WHILE (expression)
statement-block
ENDWHILE
|
A statement-block is zero or more statements. Variables can be declared here, and will go out of scope when the statement-block is exited.
Note, this construct uses fully bracketed syntax.
Examples
while (i < 10)
i := i + 1;
endwhile
|
|
while (i < 10)
print "i=" + i;
i := i + 1;
endwhile
|
|